﻿$(function() {
    var AJAX = 'ajax.googleapis.com';
    var FONTS = 'fonts.googleapis.com';
    var status = document.getElementById("status");
    $('#ajax').val(localStorage[AJAX] ||'ajax.loli.net');
    $('#fonts').val(localStorage[FONTS] ||'fonts.loli.net');
   $('#btnSave').on('click', function () {
        localStorage[AJAX] =  $('#ajax').val();
        localStorage[FONTS] =  $('#fonts').val();
        status.innerHTML = "设置成功！";
        setTimeout(function () {
            status.innerHTML = "";
        }, 750);
    });
});